package com.bird.server.solo;

import com.bird.domain.dto.Result;
import com.bird.domain.entity.HeadLine;

import java.util.List;

/**
 * @Author: sijunqiang
 * @Date: 2020/3/29 17:10
 * @Description:
 */
public interface HeadLineService {


    /**
     * 添加头条信息
     *
     * @param headLine
     * @return
     */
    Result<Boolean> addHeadLine(HeadLine headLine);

    /**
     * 移除头条信息
     *
     * @param headLineId
     * @return
     */
    Result<Boolean> removeHeadLine(int headLineId);


    /**
     * 修改头条信息
     *
     * @param headLine
     * @return
     */
    Result<Boolean> modifyHeadLine(HeadLine headLine);

    /**
     * 根据id 查询头条信息
     *
     * @param headLineId
     * @return
     */
    Result<HeadLine> queryHeadLine(int headLineId);

    /**
     * 查询头条列表并分页
     *
     * @param headLineCondition
     * @param pageIndex
     * @param pageSize
     * @return
     */
    Result<List<HeadLine>> queryHeadLine(HeadLine headLineCondition, int pageIndex, int pageSize);

}
